package com.jnzc.ocr.serv.shop.api.impl;

import com.jnzc.ocr.common.bean.PageResult;
import com.jnzc.ocr.serv.shop.api.ShopRefundApi;
import com.jnzc.ocr.serv.shop.entity.ShopRefund;
import com.jnzc.ocr.serv.shop.filter.ShopRefundFilter;
import com.jnzc.ocr.serv.shop.service.ShopRefundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangcm
 * @version 1.0, 2017-09-29
 */
@RestController
public class ShopRefundApiImpl implements ShopRefundApi {

    @Autowired
    private ShopRefundService shopRefundService;

    @Override
    public PageResult<ShopRefund> search(@RequestBody ShopRefundFilter filter, Integer pageNo, Integer pageSize) {
        return shopRefundService.search(filter, pageNo, pageSize);
    }
}
